package database

import (
	"github.com/gin-gonic/gin"
)

type NameDao struct{}

func (n NameDao) GetName(name string) map[string]string {
	res := make(map[string]string)
	str, err := r.Get("name")
	if err != nil {
		rLog.Error("Get error", err)
		return nil
	}
	res[name] = str
	rLog.Infof("%v\n", res)
	return res
}
func Rdis(c *gin.Context) {
	r.Set("aa", "bb")
	rLog.Debug(r.Get("aa"))

}
